Sumtype

Use that when you want to hold arbitrary defined type (which usually must be converted) By using sumtype, your data will be converted only once and after that, it will be runtime type strict.

Members

Aliases

opBinaryRight
alias opBinaryRight = opBinary
Undocumented in source.

Functions

get
T get()
Undocumented in source. Be warned that the author may not have intended to support it.
getTypeName
string getTypeName()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
bool opBinary(Type t)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
T opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
set
T set(T value)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

make
Sumtype make(string data)
Undocumented in source. Be warned that the author may not have intended to support it.
make
Sumtype make(T data)
Undocumented in source. Be warned that the author may not have intended to support it.
make
Sumtype make(string data)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

data
TypeUnion data;
Undocumented in source.
type
Type type;
Undocumented in source.

Meta